Consider - an app that replicates this functionality on the phone, but tracks if the user at any point closes the app. This then is reported to the teacher so the teacher knows if there was any cheating.
t. Student who’s had to deal with lockdown browser and similar school-specific proprietary malware.