the joke is on someone
US /ðə dʒoʊk ɪz ɑn ˈsʌmˌwʌn/
UK /ðə dʒoʊk ɪz ɑn ˈsʌmˌwʌn/

1.
lo scherzo è su qualcuno, la beffa è per qualcuno
used to say that someone who has tried to make another person look silly has in fact been made to look silly themselves
:
•
He thought he was being clever by tricking me, but the joke is on him now that I've exposed his lies.
Pensava di essere furbo ingannandomi, ma lo scherzo è su di lui ora che ho smascherato le sue bugie.
•
They tried to embarrass her with a prank, but when it backfired, the joke was on them.
Hanno cercato di metterla in imbarazzo con uno scherzo, ma quando si è ritorto contro, lo scherzo è stato su di loro.