I distract as much as possible. So the moment she is cranky I go “omg, is there a Lizard in the ceiling - omg can u help me catch it?” Or I make her tantrum into a game. So I tell her she says no 1 time and then I say yes 1 time then she needs to say no 2 times and me yes 2 times. And we need to get it right till 5 - and then we can high five. She always ends up playing along and then bursting out in giggles when she says no wrongly.