If you want your page to fit the screen, you can use the viewport meta tag. The viewport meta tag tells the browser how to adjust the page's dimensions and scaling to fit the screen.
If you don't want your page to fit the screen, you can use the overflow property. The overflow property specifies what should happen if content overflows an element's box.
For example, if you have a div element with a width of 100px and you set the overflow property to hidden, any content that exceeds 100px will be hidden.
...