The page is tiny on my phone

  • HTML
  • ESP32 pages

Why it happens

  • The viewport line is missing from <head>.

How to fix it

  1. Add <meta name="viewport" content="width=device-width, initial-scale=1"> inside <head>.
  2. Use percentages or max-width instead of wide fixed sizes.

It worked if: Text is readable without zooming.

From the official documentation. From MDN. Sources: MDN: viewport.

Didn't help? Search another error or ask us.