I have iPhone 7 it freezes in apps once in a while with gray screen only way to fix it according to Apple Store is to restart phone and diagnostic passed on Apple Store end.
Restore as new helps it a little.
Restore as new helps it a little.