The back camera's portrait mode uses a combination of depth sensing techniques, such as dual cameras or advanced algorithms, to accurately separate the subject from the background. While results may vary slightly depending on the device, modern smartphones generally provide accurate depth perception, resulting in professional-looking portraits.