Is there a way to compare the index mappings between 2 indices?
There is no built-in way. Best would be to retrieve the two mappings, probably pretty-print them, and then diff them. You could also use JQ for that, and there are a few json compare tools out there, but I have not tried any of them.