Initially, look for ways to avoid tantrums if possible - do certain things set one off? My Dd used to get “hangry” so having a healthy snack handy could avoid quite a few (at 4, she still now gets tearful if lunch or dinner are late - hoping this doesn’t last for ever!). Tiredness or lack of exercise also seemed to be common triggers for her - although she wasn’t a huge tantrummer, they were definitely more common if she hadn’t had enough fresh air or if she hadn’t had enough sleep (hard with a 2 year old, I know).
We used to use something from The Happiest Toddler on the Block (which I highly highly recommend). As soon as they start getting cross, make it clear that you understand what/why they are feeling in simple language e.g. “you’re cross! Really really cross! You want the train.” While you’re doing this you reflect some of their emotion so that they can see in your face that you understand even if they are beyond listening to words (think about if you were chatting to a friend who had lost their job, you’d have a sympathetic face, whereas if someone was pissed off with a cheating bf you’d probably reflect some of their anger on your face - it makes people feel listened to and understood). Then you lower your tone a little and stay calm and keep using simple language “Dinner first, then train. It’s time for dinner now. Come to the table”.
I found it worked amazingly quickly (once I got over feeling like a complete Pratt doing the first part in public). Sometimes toddlers need to hear the name for what they are feeling to help them express it.
You can also give them other ways to express strong feelings - they can’t (and probably shouldn’t) try to just suppress big emotions, they need help expressing appropriately. So you can do “you’re so cross! Can you stamp really hard to show me how cross you are? Wow, that’s really cross. Can you clap as loud as you can to show me how cross you feel?” Helping them process it can help them to feel understood, but also distracts them very quickly without resorting to things that you’d probably rather not e.g. a bribe, screen time.
If they really need to just work out some physical stuff, you can do so. I wasn’t a fan of complete ignoring unless it was whinging (e.g. something they are in control of, rather than just having an explosion of feeling that they don’t know how to handle). So I’d go for something along the lines of “you’re really cross that you can’t have the train! You need to scream and kick on the floor for a while. When you are ready, I’ll be over here and we can have a cuddle to help you feel better”. Hopefully they come for a cuddle fairly soon, and we focus on breathing in calm feelings (works for my DD) and breathing out the anger.
Obvious exceptions are if they are doing something unacceptable to someone e.g. hurting, something dangerous.
Also, some children do genuinely seem to need a bit of space to calm down, so too much interaction is unhelpful. You’ll know your child best and know if this applies to him.
Remember, a certain amount of tantrumming is perfectly normal - children are learning to process and deal with their emotions at this age, and view you as a safe place to learn how to do this. You want to give them to tools so that they learn to calm themselves down and deal with how they are feeling in appropriate ways.