It's because of narrower aspect ratio on newer devices. That's why it doesn't make any sense to compare them with diagonal. Also there's variation in bezel thickness. For example s23/s24 has larger sized display than zenfone 10, but they're nearly identical in total body size.