During an Open Ears Forum in India, users requested many features for their aging devices like the OnePlus 5 and OnePlus 5T and the developers' team promised to deliver most of them. The most notable future update will be the selfie portrait mode introduced with the OnePlus 6. The feature will reach the OnePlus 5 and 5T in one of the following updates as the effect is produced entirely by a software. This could also mean that OnePlus could try and port the functionality to older OnePlus devices like the 3 and 3T or someone from the XDA Forums will re-pack it as an unofficial...
Source: https://www.gsmarena.com/oneplus_promises_selfie_portrait_mode_for_op5_and_op5t_and_more-news-32388.php