We haven’t tried it ourselves yet, but Meta Quest has a built-in screen casting feature: https://www.youtube.com/watch?v=GPZP56VunvY
Use a 1x1 texture instead of a solid color on the primary material. See this post (and thread) for longer explanation: Showing a different result on viewer vs editor - #7 by wojtek