Using device orientation might require a user interaction.

three.js - equirectangular panorama demo with DeviceOrientation controls.
photo by Jón Ragnarsson.