How to stencil the canvas background to the scene?

Maybe this solution (taken from this thread) can help display an iframe on a plane: