Adjusting alert preferences for messages, assignments, and activity within Teams
I have the same issue, although I am using Chrome.
It is not a browser pop-up, but rather a banner on the Teams webpage. It is not something that is controlled by the browser, so there is no way to turn it off on a browser level.