Remember the keynote presentation? When Apple showed this when representing iPhone 7, people started to think it’s water proof phone.
Please note this is possible only when digitizer and LCD is still working.
Are you having a problem with your iPhone with signal? It keeps searching and never finds a signal? Talked to your carrier, got a new replacemet SIM card but it still doesn’t work?