title: Allow screen rotation on tablets, but not phones in Ionic 4
body: <p>I found this thread that will lock it for every device <a href="https://stackoverflow.com/questions/27755208/how-to-restrict-app-to-portrait-mode-only-in-ionic-for-all-platforms">How to restrict app to portrait mode only in ionic for all platforms?</a> but what I am looking to do is allow screen rotation on tablets, but not phones.</p>
  
  <p>I was hoping this would be something I could setup in the config.xml, but I am thinking I am going to need something more like this <a href="https://ionicframework.com/docs/native/screen-orientation/" rel="nofollow noreferrer">https://ionicframework.com/docs/native/screen-orientation/</a> and do it programmatically unless I am missing something. Any ideas?</p>