-
Hey there, I've recently made a website with nextjs and tailwind. I have come across a problem. My mobile view (devtools), looks like it's being loaded as an desktop application. Which you're able to see on the screenshot below. I've been looking at the tailwind config file for hours now, trying to find a solution. Still haven't come up on anything. Could you please tell me how I could fix this! Desktop view: https://imgur.com/a/gjqx1sk Tailwind config: https://gist.github.com/Scraayp/882fdc9178fcd7003a69d70bf016dc85 Update: The mobile screen shows how it's supposed to only for 1 sec. Please see the navbar in this video. Already, thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Consider checking you have the viewport meta tag in the webpage, commonly: <meta name="viewport" content="width=device-width, initial-scale=1" /> Otherwise, consider providing a remotely-hosted git repository or similar that reproduces the unexpected behavior. |
Beta Was this translation helpful? Give feedback.
-
I have found out that my viewport is not being included by NextJS into my website. That would be the problem! Thank you for the help! |
Beta Was this translation helpful? Give feedback.
Consider checking you have the viewport meta tag in the webpage, commonly:
Otherwise, consider providing a remotely-hosted git repository or similar that reproduces the unexpected behavior.