Next.js Discord

Discord Forum

Responsiveness and SEO

Unanswered
Norwegian Forest Cat posted this in #help-forum
Open in Discord
Norwegian Forest CatOP
Hello.

Currently I'm working on a site that is very SEO heavy. The general recommendation is to have a single H1 tag on a page.

For responsiveness I use tailwind hidden class. However the element is not rendered, it is still present in HTML. Thefore sometimes I have multiple H1 tags on a page because my layout on mobile is very different.

Does anybody have an idea how to deal with this? How to get rid of the elements in HTML? Or is there better way how to do responsive design?

2 Replies