Mob Texture Depending on name tag 1.21

How can i change a mob texture depending on its nametag?

Continue to help post