window.getDeviceInfo = () => { return navigator.userAgentData?.mobile ?? /Android|iPhone|iPad/i.test(navigator.userAgent); };