I see this all too often with the iPhone 8 or iPhone 8 plus models. There is something you can try before running down to Apple or your local repairer. Please note - this does NOT always work however about 80% of the time when a customer brings their phone in it is successful.
The whole idea is to narrow down what the exact issue is.
Hope this helps and please drop a comment below if you have any questions