Support iframe and add the compare class.