you could opt for a server-side approach. One method relies on user agent sniffing via the browserslist-useragent package ( http://bkaprt.com/rjs39/05-28), which itself relies on Can I Use’s compatibility data (http://bkaprt.com/rjs39/05-29).2759-2763 ↱
Responsible JavaScript
Jeremy Wagner