Use meta tag "viewport"
The viewport tag contains the following attributes:
In order to automatically detect and adapt to the screen width, device-with should be used instead Instead of setting a fixed value, in order to prevent the user from scaling the interface beyond the screen, you need to set maximum-scale,