Landscape screen lock

Hi, is anybody willing to tell me how to lock screen on landscape mode?

1 Like

In the browser, there is no Web API to do so as browsers do not wan’t to provide such control to pages.
Although you can make app logic to ask to rotate device when in wrong orientation.
And you can add some extra tags, to notify what is preferable, which is respected if page is added to a home screen.

You can achieve this with the Screen Orientation API, but unfortunately, it is not supported in iOS Safari. To use the API, check out this page.