How to switch app mode (VR & MR) in same project

Hi everyone; I am currently working on a project that requires the use of both VR (Fully Immersive Space) and MR (Volume or Immersive Space). Is there any way to do this? Maybe something like switching scenes, clicking a button to switch from VR to MR? This is when I looked in the app store and saw that there is an app that implements similar functions called Spline Mirro. Thank you all in advance。