Oh, I thought I needed the frame listener in VR mode. I changed it and don’t use it now, but the IBL lighting still turns off when I switch the scene. Everything else works fine, as before.
I tested with the Chrome WebXR emulator and a Cardboard device on my iPhone 5 SE.
The WebXR emulator overrides WebXR API with Polyfill. Has it something to do with Polyfill not supporting the IBL light switching?
Does it work for you on other devices than the Oculus Quest?