Chosen Solution

Is it possible to replace this rear camera in a 12 pro max and it remains working 100%?  I ask this question because I could see in a video that when replacing the camera in the iPhone 12 it has problems like portrit mode or frizing the image etc.

With the latest the version of Ios 14 you can. (it will cause a pop up but functionality will not be affected.)

and can I disable the window in the settings programmatically after replacing the camera?