supporting mobileDevice and toggleFullscreen