K
K
Kotik Meow2020-07-27 17:12:56
HTML
Kotik Meow, 2020-07-27 17:12:56

How to display the mobile version of the site on the desktop?

There is a site with an adaptive, it works properly. But under a certain condition, the site should be displayed only in the mobile version, regardless of the device, how to do this?

I tried to set a fixed value for the width, but there is no effect

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


PS The application is written in React + StyledComponents

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Sharomet, 2020-07-27
@sharomet

And if you display in an iframe ?

G
generate, 2020-07-27
@generate

You must have more than one code on the mobile version of css, so that it is displayed on the desktop as on mobile, change all css as on mobile.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question