Render Dom into Reflection

Hello,
is it possible to render the dom as a reflection material into 3d elements?
Basically I’d like to do this:
https://threejs.org/examples/webgl_materials_cubemap_dynamic.html

But instead of using the environment map I’d like to use an image of the viewport.

Most of the examples I see are, i believe, workarounds, like that for example:
https://tympanus.net/Tutorials/the-substance/

You can render DOM elements into a canvas and then use it as a texture. The class HTMLMesh does this in order to use stats.js in WebXR.

However you are looking for a replacement of an environment map. And I’m not aware of a solution to generate such a map from DOM elements.