When using the Editor to enter Play Mode how can I tell if the game is running in the headset or not?

When using the Editor to enter play mode I want to be able to remove the XR Device Simulator prefab if the game is running in the headset over Quest Link - if the prefab is present when in the headset the camera motion goes all wrong.

How can I tell if the game is running in the headset or not?