How do I keep a cool head during competition?

For context, I’m a really competitive guy. I get competitive during sports, video games, etc. When I see that I’m losing and that my opponent is getting cocky or talking shit, I get heated. I don’t yell and scream or whatever, but I definitely do feel that anger running through me. What’s the stoic approach to this? How do I keep calm?