added check for mobile device orientation to set isFullscreen properly