Do your best to stay engaged during class. For instance, instead of turning off your webcam and allowing yourself to scroll through social media since nobody can see you, turn your camera on so you have more incentive to focus on the content. See if you can get your teacher's approval to record the classes too, so you can review what you've learned before exams and make doubly sure your notes are complete.