Flip the script on (someone or something) American British informal
To drastically alter or reverse something.
Portugal's national football team really flipped the script on their opponents in the extra time by a 4-2 score.
Jane ridicules Marry for her failure to complete the challenge on the first try, but she flips the script on him and achieves the trophy.
The opponent's company has undergone comprehensive loss and is in chaos! That’s really flipping the script!
The verb "flip" should be conjugated according to its tense.