The Viewport Meta Tag
Learn why mobile browsers zoom out by default and how the viewport meta tag fixes it.
Why mobile browsers zoom out your page
When smartphones first appeared, most websites were designed for desktop screens — typically around 960px wide. Mobile browsers had a clever workaround: they pretended the screen was 980px wide (even though the phone was only 320px), rendered the page at that width, and then zoomed it out to fit the tiny screen. The result? You could see the whole page, but everything was microscopic. Text was unreadable without pinch-to-zoom. Buttons were impossible to tap. It was like looking at a poster through the wrong end of a telescope. This is still what happens today if you create an HTML page without a viewport meta tag. The browser assumes your page was designed for a 980px desktop and shrinks everything to fit. The viewport meta tag tells the browser: "Stop pretending. Use the actual screen width." It's a single line of HTML that transforms the mobile experience from unusable to properly sized.