When I render an image it comes out different than what I see in the viewport. How can i fix this? As you can see the bevels in the viewport on the front pyramid are much smaller compared to the rendered image. This is an Eevee render.
Do you have any modifiers (e.g. subdivision), which have different parameter settings for "Viewport" and "Render"?

If so, setting the number to the same value should give you a consistent result!