Depending on your type of bed and masttress you might find certain placements work better
please do not place your iphone underneath a pillow or thick mattress as it can become warm when charging
if you feel uncomfortable having an iphone close to your head . you may set it to flight mode. as a bonus this also ensures that no can bother you while you sleep.