Viewport Render Glass

I have been using eevee viewport render for an animation and it looks great. It is also 10x faster than the regular render. The only thing is the glass is not looking as good. The glass looks great in the actual viewport in rendered view but when I go to view-viewport render image, the glass doesnt look the same as in the 3d view. What gives?

glass

Thisis an image showing the 3d viewport in rendered and the vieewport render image. The one on the right is the 3d viewport and I like the way it looks. When viewport rendering the glass gets dark and lees transparent.