The example of dramatic irony is:
A roofing contractor on a multistory building has a fear of heights.
In this case, the audience is aware of the contractor's fear, while the contractor is likely in a situation where that fear is significant and potentially dangerous, creating a contrast between the character's situation and the audience's knowledge.