It’s called en.wikipedia.org/wiki/Whataboutism, tankies love this fallacy for some reason.
Whataboutism - Wikipedia

It’s “appeal to hypocrisy”. It’s very similar to butwhataboutism, but butwhataboutism relies on constantly shifting the focus and making the opponent jump through hoops while the butwhatabout-er never concedes anything. Hypocrisy is saying “you did bad shit too.”