setting alarms helps like people have said removing stuff thats distracting from the area that youre studying is good also   i do better in online classes because in person lectures do nothing for me tbh if i could never take a class in person again id do it in a second