Do not let your daughter control you. She knows you are flustered and upset by this behavior and she will only continue to do it UNTIL you stop rewarding her with what she wants.
Calmly speak to her in a low control voice, with you hands over your ears to demonstrate, that Mommy can NOT hear her and will NOT listen to whatever she has to say UNTIL she stops yelling or screaming or talking to you in anything but a polite and respectful tone and wording. Then walk AWAY and keep walking away until she stops.
Trust me, she will learn very quickly that this behavior is no longer getting her what she wants. YOU are the parent and YOU should be in control. When you act in control and calm, then she will learn how to be calm and in conrol and will be more respectful to you and will feel more secure because you are calm, in control and reassuring.
YOU are the adult and you need to show her how to grow up.
Check out the famous youtube video that a dad filmed of his child flinging himself on the floor, looking up and noticing that mom had left, picking himself up calming, finding his mom again in another room, flinging himeself on the floor again screaming, until he noticed that his mom had moved again, This continued for a couple of minutes.
Your daughter will learn very, very quickly to stop.
Teach her life skills by teaching her to calmly and respectfully speaking to you and everyone else.