To view measurements directly from, say, your new iPhone 18, you'll need an app that explicitly supports the built-in pressure sensor rather than pulling from outside data. App descriptions should lay out all of their sources, so you can easily verify if it's using the built-in barometer or third-party data.
Barometer & Altimeter & Thermo is a solid option, and it says right there in the description box that it uses the iPhone's built-in barometer. It also uses GPS and weather station information for calibration. It's a free app to download, but like most free apps, you'll have to watch a few commercials and build up a little pressure in your skull while awaiting the results. The listing as of November 2026 requires iOS 13 or later, so as long as you're not rocking an iPhone 5 from the dinosaur era, you should be fine.
Another option is My Altitude, which also lists that it uses on-device sensors by default when available. Despite misspelling "see" level in its description, it carries a 4.8 overall rating from 27,000 ratings. The free version includes adverts, because of course it does, with in-app purchases to remove them.
Whichever app you go with, take note of the pressure reading before and after walking up a flight of stairs. Then return to the same spot and check weather-related barometric pressure readings so you can compare the two. Just a fun little comparison task to run. Just don't confuse pressure changes caused by storms or rapidly clearing skies with changes in your current elevation.