iPhone 7 not turning on automatically while charging
When it comes to physical problems you might have to go to an Apple Store. Be sure to book in advance to make your meeting as quick as possible!

In cases like this, it could be due to a hardware issue and you might be eligible for a free replacement if your device is defective.