To be clear, it's fine to be light hearted and jokey, perhaps most of the time depending on the group.
Knowing when to turn on and off Serious Mode is a skill that can be hard to develop, and IMO it's perhaps the GMs job to gently say when they want things to be serious.