Screen orientation for Mobile vs. Tablet

Is there a way to lock screen orientation to portrait only for mobile and allow it to rotate on both landscape and portrait on tablet? I’m having issues where my screen are being cutoff on landscape view on mobile since the screen size is too small to show everything but looks good on both view for tablet.