Hi
It’s been a while since I did a iPhone screen replacement but I remember the iPhone 6S had this issue and it was solved by transferring the metal backplate from the display over as it had a paired Touch ID cable on it
As I said it has been a while but I would check that back plate for anything like that and if you see it swap it over to your new screen
Hopefully this helps
Thanks:-)