Thanksthere's a couple big scripts floating around
basically you upload a little script to your server that checks for known mobile useragent footprint, or browser width.
see https://www.woorank.com/en/blog/how-to-redirect-mobile-users-on-your-website