HTML device orientation API access the device gyroscope/accelerometer https://developer.mozilla.org/en-US/docs/Web/API/Device_orientation_events/Detecting_device_orientation Tutorial: https://web.dev/articles/device-orientation?hl=it