When a user is disabled in Azure AD or blocked, the user will continue to appear in Microsoft 365 applications. The account needs to be deleted in order for it to disappear from applications.
There is also a known issue that causes disabled users in Team's due to caching. If the user still shows, you can clear the Team's cache for the affected users (%appdata%\Microsoft\Teams), and it should disappear.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.