In the current state, it is such a hassle to scan the attendance QR code for online classes when the students are attending from their phones.

My improvement idea is to simply just add a feature to the QR code scanner where the user can choose a picture for the attendance QR code from the gallery, so that the student can easily snap a screenshot and scan it immediately. I attached a photo for an example QR code scanner for your reference.