Glass BSDF gives different results when rendered in viewport and with "Render image" I get a weird behavior with eevee and glass bsdf, I have a simple scene with a vertical plane with a glass-like material and a cube with an emission shader which is behind the plane from the camera point of view.
When I set the viewport shading to &quot;rendered&quot; I get this:

But when I hit render, I get that:

The effect I want to achieve is the one I see in the viewport, but I can't get the same result in the final render, what am I missing?
You can find the blend file here:
https://pasteall.org/blend/fd70eccf7c774bbc981b9040ab19f3be
Why do you have &quot;Lock Camera to View&quot; enabled? If you accidentally have moved your viewport view, then the camera view would also be different, thus changing the render.
Simply disable this, and find an optimal spot for your camera, then render.
Also, I would recommend using Cycles Render engine for glass reflections, as it is more realistic.