One object. Two realities.
Explore a floating cube in VR, or place one on a detected surface in AR. The desktop canvas is a 3D preview, not an AR simulation.
Checking device capabilities…
VR requires a WebXR-compatible headset and browser. AR requires a compatible camera device and WebXR hit testing. Use HTTPS on a phone; localhost is suitable for desktop testing. In AR, aim at a surface and tap to place the cube.