Добавить кнопку на сайт моб версия, и как пример код ниже при нажатии на нее ставит viewport width= 1101px, потом при повторном нажатии возвращает viewport width = device-width
$(document).ready(function(){
// viewport stuff
var targetWidth = 1101;
var deviceWidth = 'device-width';
var viewport = $('meta[name="viewport"]');
// check to see if local storage value is set on page load
localStorage.isResponsive = (localStorage.isResponsive == undefined) ? 'true' : localStorage.isResponsive;
var showFullSite = function(){
viewport.attr('content', 'width=' + targetWidth);
if(!$('#view-options #view-responsive').length){
$('#view-options').append('<div id="view-responsive" class="blue_button">Мобильная версия сайта</div>');
}
localStorage.isResponsive = 'false';
console.log('no');
}
var showMobileOptimized = function(){
localStorage.isResponsive = 'true';
viewport.attr('content', 'width=' + deviceWidth);
console.log('yes');
}
// if the user previously chose to view full site, change the viewport
if(Modernizr.localstorage){
if(localStorage.isResponsive == 'false'){
showFullSite();
}
}
$("#view-full").on("click", function(){
showFullSite();
});
$(document).on('click', '.parent_order', function() {
});
$('#view-options').on("click", "#view-responsive", function(){
showMobileOptimized();
});
});