In MetaMask Extension:
You can alter the account name by selecting the three-dot menu on the top right. Clicking on it will bring down the Accounts menu, where you can select the pencil icon and edit the name. Once you are done editing, select the checkmark to save it.
In MetaMask Mobile:
Tap and hold on the account name; this should bring up the text field to edit.