I mean it’s an app called measure. It looks like this:
It should be been installed by default, but if you restored a backup from a previous phone it’s possible that you deleted it at some point. If that’s the case you can find it in the App Store to reinstall it: