https://onezeronull.com/2012/10/17/mobile-browser-dectection-function/
Mobile browser dectection function