The Apple iPhone 11 and Apple iPhone XR are both very similar phones.
The screen on both phones are pretty much identical, with the same 1792 x 828 resolution and 6.1 inch size.
The camera setup on the Apple iPhone 12 has an additional camera for ultra wide pictures, whereas the Apple iPhone XR only has a single camera. In addition, the Apple iPhone 11 also has a night mode feature for shots taken in low light. For the selfie camera, the Apple iPhone 11 is equipped with a 12 MP camera, whereas the selfie camera on the Apple iPhone XR is almost half at 7 MP.
As for the battery, the Apple iPhone 11 has a 3110 mAh battery, whereas the Apple iPhone XR has a 2942 mAh battery. The difference is a mere 5.5%, however Apple claims an increase of 1 hour in real world usage.