2

When viewing a website in Devtools with the Responsive Viewport, you can customize the screen dimensions in pixels. Is this accomplished on the browser end according to CSS/JS rules? , or are the screen dimensions sent to the website server, which responds appropriately? If it's the latter, how is this info sent - is it part of the useragent, header, HTML tags, something else?

My goal is to display a website with custom viewport dimensions with something like a UserScript, and without using DevTools or physically resizing the browser window.

3
  • 1
    On the browser end (aka locally)
    – Gantendo
    Commented Apr 21, 2023 at 16:19
  • Why is that your goal? This might be an XY problem. Do you know about services like BrowserStack?
    – Gantendo
    Commented Apr 21, 2023 at 16:20
  • stackoverflow.com/a/69292852
    – Gantendo
    Commented Apr 21, 2023 at 16:22

0

You must log in to answer this question.