and u can also try using browser detection,
enter link description herehttps://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent