Android mobile device detection is too strict

Wait, are you saying I shouldn’t see this button in Chrome on my laptop?

What is the criterion for mobile devices in the client-side JavaScript code?