Dramatic irony is used in a narrative when an event occurs whose significance the audience understands but the characters do not.
For example, in Romeo and Juliet when the characters think that juliet is dead but the audience knows she's only been knocked out by a sleeping potion.Or this scene from my upcoming feature film, Mayonnaise Volcano Wrriors.