i want to redirect to another domain if user comes from mobile when i type the url in browser before any html rendering.
but some html header and footer appear before redirect happen
how to fix that
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2002">#c2002</a>)</em></sub></div>