← Back to Test Matrix
⚠️ Issue: missing viewport (future detection)

Missing Viewport Meta Tag Test

This page is intended to test detection of missing viewport meta tag.

Note: Next.js 15 automatically adds viewport meta tag. To truly test missing viewport, the following meta tag would need to be explicitly removed from the HTML head:
<meta name="viewport" content="width=device-width, initial-scale=1" />

What's wrong?

Expected Detection:

Check: mobile-friendly (automatic, detection not yet implemented)

Status: Future Issue

Detection logic would need to:

Symptoms of Missing Viewport:

The Fix:

Add viewport meta tag to HTML head:

<meta name="viewport" content="width=device-width, initial-scale=1" />

In Next.js metadata:

export const metadata = {
  viewport: {
    width: 'device-width',
    initialScale: 1,
    maximumScale: 5,  // Allow zoom for accessibility
  }
}

Viewport Best Practices:

Common Viewport Values:

<!-- Standard (recommended) -->
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- With maximum zoom (good for accessibility) -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">

<!-- Fixed width (not recommended) -->
<meta name="viewport" content="width=600">

<!-- Bad: Disables zoom (accessibility violation) -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

Testing Mobile-Friendliness:

Current Status: Next.js automatically includes viewport meta tag, so this page likely passes the check. In a production scenario without Next.js, the absence of this tag would be detected as an issue.