You take your girl to the toy store as a special treat. She chooses one that you are happy with – and something else too. You say “no”, and she lies on the floor screaming.
What you can do Tell her in advance that she can pick only one toy, which you must like as well. Tell her that if she misbehaves, she won’t get anything.
If she becomes angry while at the store, remind her again. If she doesn’t calm down immediately, leave.
Advance warning of punishment for misbehaviour lets her know what lies ahead, and gives her a chance to control her emotions.