Suddenly turning the focus to something else beyond the tantrum can help your child take their laser focus off of their frustration.
One option, especially great for younger toddlers: engage your child in a game making of animal noises. The silliness will likely make your child stop in their tracks, and it will lighten the mood for you, too. The instant game can turn into a lesson as you list off animals and their sounds. As a bonus, if you have a package of toy animals on-hand, you can build an on-the-spot zoo, versus looking like a zoo attraction yourselves.