Mixed reality headset not working in standalone game

Windows MR works fine in VR preview, but not in standalone game or packaged build. The controller works in a packaged build, but not in standalone game. Is there a setting somewhere that would cause this?

Found the solution: Project settings -> Project ->Description -> Settings -> Start in VR.