It depends, you can check some of the fields here
Metadata2go.com
And see location here.
Pic2map.com
Some image compression in messaging apps remove some of it. And you can choose to not store location on iOS for example. But I believe it’s on by default.