This depends on how your account was set up. If this is a Office 365 Account then you can make the changes in the Display Name for the account in Active Directory and the changes will be replicated accordingly.
In case this is a free Teams Account the name will be populated from the Outlook Account name which have been configured while setting up the outlook account.