<meta> not working when initial-scale is changed

Viewed 195

By default, in the index.html file:

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

I changed it to:

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

Nothing happened.

What did I do wrong?

1 Answers

meta viewport is only supported by mobile browsers.

To achieve the same effect on a desktop browser, you can use the zoom property.

body{
  zoom: 200%;
}
Hello World!

Related