Viewport meta tag
Answered
x8er posted this in #help-forum
![Avatar](https://cdn.discordapp.com/avatars/252510463609405442/1a5c19fc4e7d66b17cc74b2ab1a3151f.webp?size=256)
x8erOP
Hi, I don't understand why the viewport meta tag is not overridden. In the
Pls help me![:fine:](https://cdn.discordapp.com/emojis/753870958363803719.png)
_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:](https://cdn.discordapp.com/emojis/753870958363803719.png)
Answered by x8er
The problem was solved. I also have another tag in layout.ts which overrides tag in _app.tsx ![:sunglasses_1:](https://cdn.discordapp.com/emojis/767749456648339497.png)
![:sunglasses_1:](https://cdn.discordapp.com/emojis/767749456648339497.png)
2 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Chinese Egret
You should render it in
_document
![Avatar](https://cdn.discordapp.com/avatars/252510463609405442/1a5c19fc4e7d66b17cc74b2ab1a3151f.webp?size=256)
x8erOP
The problem was solved. I also have another tag in layout.ts which overrides tag in _app.tsx ![:sunglasses_1:](https://cdn.discordapp.com/emojis/767749456648339497.png)
![:sunglasses_1:](https://cdn.discordapp.com/emojis/767749456648339497.png)
Answer