The most common use of dramatic irony in a text is to do what

create suspense and tension for the audience or reader. By allowing the audience to know information that the characters do not, dramatic irony can heighten the anticipation and anticipation of what will happen next. It can also create a sense of dramatic tension as the audience waits to see how the characters will react when they eventually discover the truth.