I'd like to detect Chrome on mobile devices only e.g Chrome for Android, Chrome for iOS. What's a reliable way to do this?
EDIT 1: In case you're wondering why...
The mobile version of Chrome annoyingly changes the viewport height when the address bar shows/hides. Because my site relies so heavily on vh units, the user experience while scrolling on Chrome for Android and Chrome for iOS is ugly.
My solution is to wrap the entire site in a limited height container and relegate the scrolling to it. This prevents the window from scrolling, thus preventing the address bar from hiding. The only problem is that on desktop browsers scrolling becomes problematic because my layout contains fixed elements that obscure the wrapping container's scrollbar. Seeing as I may not ever find a solution to that problem, the best way forward for me is to detect Chrome on mobile devices, and apply the new layout only then.
EDIT 2: The answers given in this question do not work for me. They detect Chrome even on Safari and the stock browser.