Code:
<meta name=”viewport” content=”width=device-width, initial-scale=1.0, viewport-fit=cover”> <meta content="initial-scale=1, minimum-scale=1, width=device-width" name="viewport">
- viewport-fit=cover: This attribute is used in the first option to ensure that the content is scaled to cover the entire viewport, even if it means being clipped. This is useful for mobile devices with notches or rounded corners.
- minimum-scale=1: This attribute in the second option sets the minimum zoom level to 1, preventing users from zooming out further.
Comment