How do we set Mobile phones to Portrait only and allow tablets to switch between portrait and landscape?
I am using Ionic/Cordova.
Currently I have configured to set the app to be in portrait mode in config.xml using the following property
<preference name="orientation" value="portrait" />
You could use isTablet plugin in conjunction with screen orientation plugin, something like: