If the issue only occurs after deploy with Netlify then it is almost certainly an issue with deploying.
I would recommend you read this aswell.