If you use the meta tag viewer, you can also update this tag (with jquery example :)
function adapt_to_orientation() { var ori = window.orientation; var screenwidth = (ori==90 || ori==-90) ? screen.height : screen.width; var screenheight = (ori==90 || ori==-90) ? screen.width : screen.height; // resize meta viewport $('meta[name=viewport]').attr('content', 'initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,width='+screenwidth + ',height=' + screenheight); } adapt_to_orientation(); $(window).bind( 'orientationchange', adapt_to_orientation);
source share