To control landscape and portrait position

Hi guys.

My app (PWA) has 7 views, five of them have to work on portait position (if the user put on landscape, notihing happend, the desgin not move) , two of then, if the user put device on landscape , the view show more information(columns).

So How can I control what view works on one position(portrait) and how works with two position(landscape/portrait)?

Happy new year!

Use a plugin to allow/prevent screen orientation changing based on whatever view you are showing:

Thanks Kerry!

Question … Maybe I’m wrong …Can I work with cordova plugin on PWA app?

Sorry Joak, didn’t realise it was a PWA. Try the Screen Orientation API, although it doesn’t appear to be supported on Safari: