For users on Windows 10 or 11 whose keyboard shortcuts don't work, the Action Center is the fastest alternative:
For full device orientation support, you may need to request permissions:
// Initialize when DOM is ready document.addEventListener('DOMContentLoaded', () => new ScreenRotationShortcut(); );