title: Cordova/Ionic - Set Portrait Only Mode for Mobiles and allow Orientation in Tablets
body: <p>How do we set Mobile phones to Portrait only and allow tablets to switch between portrait and landscape?</p>
  
  <p>I am using Ionic/Cordova.</p>
  
  <p>Currently I have configured to set the app to be in portrait mode in config.xml using the following property    </p>
  
  <pre><code> &lt;preference name="orientation" value="portrait" /&gt;
  </code></pre>