The client (i.e. the browser) can choose to include a bit of extra information in the request it makes to the server, where it identifies what kind of client it is. It tells the server what browser it is, what OS it’s running, etc.
If you’re talking about changing the layout to fit the display however, that’s a bit different. Developers can write a bit of HTML and javascript code to detect the window size, and automatically rearrange/resize the UI accordingly.
Latest Answers