Archaeologist have identified “transgender” coffins.
In eras of economic hardship, coffins would be reused by basically taking the original mummy out, laying it aside, and putting someone else in. If the new occupant was a different sex from the original, artists would alter the coffin, taking off beards and adding or subtracting breasts so the coffin represented the new body inside. The mask above always represented a woman, but some pretty convincing examples like this one have been found to have holes for a beard to fit in, carefully filled and covered with plaster and paint.