The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Viewport initial-scale issue for iPad Reply To: Viewport initial-scale issue for iPad


I am trying this, but I have a feeling something isn’t right here…

jQuery(document).ready(function() {

    if (jQuery(window).width() > jQuery(window).height())  {
        var viewportmeta = jQuery("meta");
        if (viewportmeta) {
            viewportmeta.replaceWith('<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=yes"  />');


Thanks for your quick reply Paulie D… Any help would be great.