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.
笑いものになるのは誰々の方だ, 誰々が笑われる
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.
彼は私を騙して賢いつもりだったが、彼の嘘を暴いた今、笑いものになっているのは彼の方だ。
•
They tried to embarrass her with a prank, but when it backfired, the joke was on them.
彼らはいたずらで彼女を困らせようとしたが、それが裏目に出て、笑いものになったのは彼らの方だった。