🔥 Need to check if the current device is a mobile browser in JavaScript?
Here's a little snippet that uses feature detection & is more reliable and trustworthy than checking navigator.userAgent
.
Source: https://twitter.com/ryangjchandler/status/1303722191264141312/photo/1