Is there a way to have a character swap meshes and swap animations all while using the same anim blueprint?

My character swaps mesh and I want him to change animations to fit the new mesh but instead he keeps the animations for the old character? I was wondering if there is any way for the animations to change once the character changes mesh