A switcheroo is a:
sudden unexpected variation or reversal, often for a humorous purpose. It is colloquially used in reference to an act of intentionally or unintentionally swapping two objects.
What's the translation of switcheroo in French? Google Translate and DeepL didn't help.