The Glass BSDF will work great in Cycles, however not so great in EEVEE.
If you want to use a shader that works for both EEVEE and Cycles, try this…

Don’t forget in EEVEE to switch the blend mode in the material settings to Alpha Hashed, and turn on Screen Space Reflections in the Render Properties.