Prevent screen sleep (Screen Wake Lock API?)

Hi,

Has anyone successfully managed to prevent screen sleep of the web app developed?

My app is a syllabus app - you look at it, scroll, identify what you’re looking for, practice (without the phone) - and go back for the next step.
Many times the screen locks in this time, which is waste of time and frustration.

So looking for a way to prevent screen sleep (e.g. using Screen Wake Lock API).

Wonder if anyone did this and/or has any pointers?

Thanks!