Is it possible to have a JavaScript function before the
<meta name="viewport" content="width=device-width; initial-scale=1.0; ">
to set the scale figures , to target each mobile device width correctly ?
For example in the JavaScript we have
if (window.devicePixelRatio == 0.75)
we make the meta tag:
<meta name="viewport" content="width=device-width; initial-scale=1.4; ">
and
if (window.devicePixelRatio == 1.5)
we make the meta tag:
<meta name="viewport" content="width=device-width; initial-scale= 0,75; ">
so the page when it loads , it zoom in or out, to perfectly fit the device width.
if that possible , would you please post an example .