WebVR

WebVR is a JavaScript API that makes use of any VR headset and a VR-capable
device your users have — such as a Daydream headset
and Pixel phone — to create fully immersive 3D experiences in your browser.

Support and Availability

It's also available through the WebXR
Polyfill.
Bear in mind, that VR is extremely performance-sensitive and
polyfills typically have a relatively large performance cost, so it may be worth
considering whether or not you wish to use the polyfill for a user who doesn’t
have native support for the WebXR Device API.

When in doubt, avoid giving people motion sickness through poorly-performing
experiences!

More resources

Keep track of your performance

In order to minimize discomfort for the people using WebVR experiences, they
must maintain a consistent (and high) frame rate. Failing to do so can give
users motion sickness!

On mobile devices the refresh rate is typically 60Hz, which means the target is
60fps (or 16ms per frame including the per-frame browser’s overhead). On
desktop the target is typically 90Hz (11ms including overhead).