Meaning of “turn the tables on sb” - Learner’s Dictionary

turn the tables on sb

to change a situation so that you have an advantage over someone who before had an advantage over you

(Definition of “turn the tables on sb” from the Cambridge Learner’s Dictionary © Cambridge University Press)