Skip to content

Incorrect viewport Meta Tag Property Used #39

Open

Description

@Imran-imtiaz48

In the section of the HTML file, the viewport meta tag includes an invalid property: shrink-to-fit=no. This property is nonstandard and not supported across all browsers, which can lead to inconsistent rendering behavior, especially on mobile devices. To ensure better compatibility and proper responsive scaling, it is recommended to use only the standard properties width=device-width and initial-scale=1.0. The corrected line should be:

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

Activity

  1. SachinSingh008 commented on Jul 24, 2025

    @SachinSingh008

    You're absolutely right — the shrink-to-fit=no property in the tag is non-standard and not supported across all browsers. This can indeed lead to inconsistent rendering, especially on mobile devices.
    Recommended Correction:
    Replace the current line:

    With the standard, cross-browser compatible version:

    This ensures proper responsive scaling and improves compatibility across modern browsers.
    Let me know if you'd like me to create a PR to fix this!
    Thanks 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions