I used to be distracted in class. I feel that the teacher's lectures are boring.
In this case, you should get yourself excited, think about some exciting things related to the classroom, and make yourself interested in the classroom.
Or if you think the teacher is very upset, try to find some teachers who made mistakes in the lecture and point out her mistakes in public. This will also make you very excited and have a sense of accomplishment.
I hope I can help you.
Pure hand tour, seeking adoption.