DEV Community


Posted on

[NEED HELP] Screen orientation lock for a website JS/CSS

Need some help on a website I am working on. Basically I wish to implement a orientation lock when the website is viewed on a mobile device and the website would be locked on a portrait mode.

I found this implementation method on mdn web docs: Link to the article

Does anyone here have experience on making a screen orientation lock for websites? If you have any tips or trick or any resources to share thank you in advance!

Thanks for reading :)

Top comments (1)

maurerkrisztian profile image
Krisztián Maurer

I never tried but found some resources, you probably need a manifest.json file.