I hate being insecure you guys

Ok. So like when I go out and see some pretty girl I get very insecure and it ruins my day. I don’t know why I hate being like this.. or if me and my SO go out somewhere and I see him staring at some girl I get really pissed off... is anyone going they with the same situation??