I believe we should capture screen orientation changes through screen.addEventListener('orientationchange') . Please check the documentation