Here is the same question but for native android: Get phone orientation but fix screen orientation to portrait
I'm hoping to find a similar solution (or adaptation of one of those). Basically, I have locked my webapp to portrait using "orientation": "portrait" in manifest.json. However, I would like to detect when the phone is rotated to landscape.
Essentially, I want my app to support both portrait and landscape, but I want to handle it. I don't want the screen refresh. The layout will not change, only the icons will rotate.
I hope this makes sense.