Lock Mobile Orientation to Portrait

Hi,

Is there a way to lock the mobile orientation to portrait only? I’m working on a portfolio site with a lot of square thumbnails and would rather phones be fixed to a vertical scroll. Thanks in advance!

Dan


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

1 Like

Hi @dankanvis, thanks for your question. At the moment it is not possible natively to lock the orientation to portrait.

You might be able to do this using custom code, here is a related article on StackOverflow: How do I lock the orientation to portrait mode in a iPhone Web Application? - Stack Overflow

Another option I’ve seen on portfolio sites is to show an overlay / hide content when device is turned landscape (ref: https://www.aristidebenoist.com)

Hi Dave,

Thanks for the link. I’m going to try this out. I appreciate your help.

Dan

Thanks, I’m going to try this too.