2D/VR apps in UWP?

Hello I currently have a WinMR game live in the MS store. On two other platforms, I added the option to allow to users to play it in 2D or using their VR headsets. I achieved this on one platform by packaging two executables, and on the other a single executable and letting the user select VR or 2D at runtime. I would like to do the same for UWP. I was wondering if it is possible, and if so, how to do it. For the record I'm using Unity 2017 to create my game.

Thanks in advance.

possibly take a look at this https://docs.unity3d.com/2017.4/Documentation/ScriptReference/XR.XRSettings.LoadDeviceByName.html