Viewport meta tag
Answered
x8er posted this in #help-forum
x8erOP
Hi, I don't understand why the viewport meta tag is not overridden. In the
Pls help me
_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

Answered by x8er
The problem was solved. I also have another tag in layout.ts which overrides tag in _app.tsx 

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

Answer