Error Message Page being displayed on all devices

I developed a sample PWA and started the service. I used the given port number in multiple devices and if some error comes in any one device, it is being displayed in all the devices which is a big problem for me.
Please provide your suggestions.
Thanks in advance.