Apple did not include the necessary sensors for supporting wake/sleep functionality in the iPhone 12 and future models. We get asked this a lot so we have created a support article that might help explain things further.