This page makes a test if your browser can report active device screen orientation, and if it's possible to change and lock the screen orientation programmatically with JS. We use two methods to obtain lock: old deprecated function screen.lockOrientation (and screen.mozLockOrientation, screen.msLockOrientation if available) and new function ScreenOrientation.lock .
How to test?
Source code and test instructions are in GitHub.