How do I replace the mesh of an animated 3d model for an identical one but with less polygons

Godot Version

3.5

Question

As the title says, is there any way to replace the mesh of an animated for a low poly version of that same mesh? Will it retain the animations that the previous model had?