iOS 19 is expected to be compatible with all iPhones currently supported by iOS 18.
This means the iPhone XS/XS Max/XR lineup, released in 2018, will likely still be eligible for the iOS 19 update in 2025.
According to a report from iPhoneSoft
Source