Basically, the ruins are of this great king, but obviously he wasn't so great, if his statue is ruined, so I would say that when he says "Look on my works, ye Mighty, and despair!" and then "Nothing beside remains." is an example of situational irony.
Polyphemus called upon his father Poseidon, to make odysseus have a long travel back home.