Note: After saving, you may have to bypass your browser's cache to see the changes.
if(navigator.userAgent.indexOf('iPhone') > -1 )
{
document
.querySelector("[name=viewport]")
.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1");
}