Next.js Discord

Discord Forum

Viewport meta tag

Answered
x8er posted this in #help-forum
Open in Discord
Avatar
x8erOP
Hi, I don't understand why the viewport meta tag is not overridden. In the _app.tsx file and inside the Head tag, which is imported from next/head, I add <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1" />, but it has no effect and it remains <meta name="viewport" content="width=device-width, initial-scale=1">.

Pls help me :fine:
Answered by x8er
The problem was solved. I also have another tag in layout.ts which overrides tag in _app.tsx :sunglasses_1:
View full answer

2 Replies

Avatar
Chinese Egret
You should render it in _document
Avatar
x8erOP
The problem was solved. I also have another tag in layout.ts which overrides tag in _app.tsx :sunglasses_1:
Answer