How to retarget the skeletal mesh of UE4 mannequin to the new skeletal mesh of UE5 mannequin

Yea I guess my question is a bit wrong. I mean if there a tool or a way available that I can make my skeletal mesh have the same skeleton as ue5 mannequin. Now it uses the ue4’s mannequin