Hi,
As far as I know you cannot hide attendee information in a normal Microsoft Teams meeting, but if it's a Live event then you can.
A similar question was raised over here:
https://techcommunity.microsoft.com/t5/microsoft-teams/hiding-meeting-attendees/m-p/808676
Best regards,
Leon