Change an email account password in Mail

Change an email account password in Mail: Click on profile icon ❯ My Microsoft account ❯ Security ❯ Enter password to access personal information ❯ Password security ‘Change my password’ and enter the Current password then the new password twice