M
M
mletov2017-06-22 16:18:44
css
mletov, 2017-06-22 16:18:44

How to force site scaling?

Please, tell me:
There is a button "Full version of the site" in mobile browsers.
The site is shown on a mobile phone as it would be shown on a desktop, but it is the browser itself that changes the display algorithm to a desktop one.
I need to implement the same button on the site, when viewed on a mobile phone, the ability to switch between mobile and full version.
When switching to the mobile version, everything is fine, I write in the header

<meta name="viewport" content="width=device-width,initial-scale=1.0">

for desktop I write
<meta name="viewport" content="width=980,initial-scale=1">

Everything works, but when switching to the desktop version on a mobile phone, the default scale is original and the user has to manually scale to the desired size. A trifle, but unpleasant. Is there a way to force the site to scale to fit the screen.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kupurim, 2018-11-20
@SomethingSpecial

Here's an option - https://stackoverflow.com/questions/2341001/merge-...

I
iBird Rose, 2017-06-22
@iiiBird

well, do not remove the viewport, but change it. for example like this:

<meta name="viewport" content="width=980,initial-scale=0.3">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question