My boy has just turned 3 and we are just coming out the other side of this. It drove me nuts and I tried everything. Some days I felt like all I did was yell and I didn't want to be that kind of mum. What worked? Nothing really, TBH it was just the passage of time. Be consistent but also choose your battles. Often if he was just getting out if control I'd just defuse the situation by pulling a funny face or laughing. Sure probably not the best solution but it stopped me wanting to explode.

It will pass, hang in there.