r/csshelp • • Sep 05 '21

Request Prevent a web page from switching into mobile view

How can I prevent this web site https://whatsmyip.com from collapsing into mobile view when my desktop browser window is sized below a certain width?

The web page seems to switch over to a mobile layout when the window gets below approximately 1240px wide, and I would like it to stay in normal Desktop view (either permanently, or at least until the browser window gets below 1000px wide).

I looked at the source code for the page, and I can see a class called .mobile and some @media {min-width: values with a few different widths, but I'm too inexperienced to know exactly how use them to prevent the page from switching to mobile view.

I'd very much appreciate some help.

6 Upvotes

0 comments sorted by