Looks like same question as Screen mirroring that is usable (for non VR users)
It’s implied in some responses there that Windows Mixed Reality includes a mirroring “preview” feature that can provide this. This old Reddit post says you can turn it on from the Mixed Reality portal app.
I don’t have a WMR headset so cannot test if this works.