“Groups” > tap the group > tap “Change display name” on your own row under “Members”→ a window opens > enter a “Display name” and “Icon letters” and tap “Save”→ in that group, you appear with that name and icon
To go back to your account name: in the same window, clear the display name and icon letters and tap “Save”
Notes
A preview of how you'll look in that group appears at the top of the window
Icon letters are up to 2 characters. If left empty, the first character of the display name is used (if the display name is also empty, your account's icon letters)
If your icon is a photo, the same photo appears in every group
Up to 20 characters. Couple groups use a “Nickname” instead (set in “Couple profile”)
Notifications you received earlier keep the name used at that time