So this is how it looks when I get a preview rendering in the 3D viewport: https://i.stack.imgur.com/XGkPr.jpg
This is how it looks when I press render for a final result:
https://i.stack.imgur.com/EQCF3.jpg
I have no idea what's happening. Can someone help me figure the problem out?