Imagine having specific markup that should only be displayed on desktop using v-if.
If the user is on mobile, a different content should be shown using v-else.
The vue-mq package allows for setting a default breakpoint to use for server-side rendering.
However, setting 'sm' as the default breakpoint can cause issues when loading the page on a desktop, as it initially loads the 'sm' version which may not match the 'lg' version.
This mismatch results in console errors.
What is the correct way to conditionally render HTML content for server-side rendering in nuxt/vuejs?
Any suggestions on how to resolve this issue without forcing the user to load both versions of the markup (e.g. by using v-show instead of v-if)?
Your help is greatly appreciated.
Thank you!