Never yell at your dog as yelling evokes their depressed emotions and lowers their receptivity.
Repeated yelling and punishing your dog will display a harsh environment where your dog will be put to automatic physical and emotional stress.
Remember, a positive methodology is the best way to handle tantrums that otherwise will yield negative feedback from your dog.