Chosen Solution
While in the camera, the portrait looks fine and the bokeh shows in real time but when I capture it the background blur just becomes normal. Is this a camera problem?
It’s most likely just a software problem so try doing a full reset on the device and see if that helps. Remember to make a backup of your phone.