Using Microsoft Teams on macOS, including installation, features, and compatibility
Ok, so it appeared to be an issue with Mac notifications, and not specific to Teams.
The thing that solved it for me is turning on "Allow notifications when mirroring or sharing the display" in System Settings > Notifications.