Today, according to my Garmin 200, I cycled 36 miles with 2300 ft of elevation.
According to my brother's phone with strava on it, we cycled 36 miles with about 1790 ft of elevation.
What one is the right one?
The one with the highest reading, of course
If you want a really
consistent reading, use a website that has an option to replace your elevations with ones derived from mapping data. Ride With GPS does this, I don't know if Strava does.
If you want a more
accurate reading then use a device with a barometric barometer and read the instructions about how to calibrate it. (And bear in mind what
@GrumpyGregry says about weather systems).
In general, only compare like-with-like. Which is why mapping-derived data is good as it's so consistent. But you can't necessarily compare it with data from your devices.