Like Mary? Just the opposite! (8)
I believe the answer is:
contrary
'the opposite' is the definition.
('contrary' can be a synonym of 'opposite')
I don't understand the remainder of the clue.
Can you help me to learn more?
(Other definitions for contrary that I've seen before include "Quite like Mary" , "Opposed or perverse" , "Opposite, perverse" , "Perverse, obstinate" , "Carry out (command)" .)