Hi guys, last month Apple replaced my 12 pro max, the new device (which I think is a refurbished unit) has a curious problem: it turns on by itself! After recharging the phone (I turn it off first) I find the device switched on in the morning, with the request for the unlock code. The diagnostics in AS show no problems, I have restored the software and the backup to iTunes (I cannot restore it "as new"). I know that Apple products turn on when, when turned off, they plug in, I have two iPads, I had 8 plus, X, XS Max and 12 Pro Max, before it replaced me I never found it turned on in the morning . I can't tell when it turns on, I just find it switched on almost every morning, actually, but they tell me the phone works perfectly. I also reset the settings, do you have any advice? do you know if there is a particular setting in iOS 15 (but why at that point with iPadOS I don't have the same problem? I have the pro 11 and 12.9 version 2020) or there is a defect that I cannot replicate, I can only film what happens at night... 
I have no other solutions, I think. They can't replicate the problem in AS, so I'm left with a phone that has a ghost in itself!
Have a nice day!
Have a nice day!