In Cromwell by Victor Hugo, Rochester, one of the men who conspires against Cromwell, thinks he's in a romance, and that his forbidden love with Cromwell's daughter will prevail. Unfortunately for him, he's in a political drama and she never noticed that he existed.
In the 18th century play Nathan the Wise, Nathan's servant Daya is reasonably savvy of the "Columbine" role in commedia del'arte and thus sees it as her duty to find a mate for Nathan's daughter. However, the young crusader that Daya tries to fix up with the daughter turns out to be the daughter's long-lost brother. In commedia del'arte, this kind of Contrived Coincidence is fairly common, so you could say that the guy would either be the love interest or the long-lost brother, and Daya made the wrong conclusion. There's also an aspect that although Daya knows that Nathan is a nice guy, she has antisemitic prejudices, and thus tends to act like the play she is in is The Merchant of Venice.
Rodrigo of Othello fits this on two levels. He thinks he's the rake protagonist who seduces the pretty young wife of an old man, but he's actually more like a Casanova Wannabe-type who gets conned by the conniving servant. Making things worse is that he's in a tragedy, not a comedy, and the conniving servant is Iago.
Polonius in Hamlet thinks he's in a Star-Crossed Lovers comedy, where every problem is caused by unrequited love and can be solved with eavesdropping. Unfortunately for him, he's in a revenge tragedy. As with Roderigo, he fits a Commedia dell'Arte stock character who happens to be in a tragedy (Roderigo is a Captain / Miles Gloriosus type, and Polonius is the Pantalone/Dottore character).
Deconstructed with Tybalt in Romeo and Juliet, who doesn't realise he's in a romantic comedy, and winds up derailing the plot into a tragedy with his killing of Mercutio.
In Mozart's opera Don Giovanni, Donna Elvira shows two types of Wrong Genre Savviness. When she's in her Love Martyr mode, she thinks she's the heroine of a romance story, destined to redeemthe roguishanti-hero with her love. When she's in her Woman Scorned mode, she correctly realizes that she's in a story of an irredeemable rake's divinely-ordaned punishment, but wrongly assumes that she will be the one to punish him. Actually, she's just a tragicomic supporting character, and the real agent of the Don's punishment is a muchmore imposingfigure.