The above problem seems to have appeared recently and I hoped it would sort itself out with recent updates however the problem persists. All drivers checked and up to date and no issues identified by diagnostics. My home wifi is very good I have bt hub 6 and BT whole home wifi none of my other devices drop wifi connection. It seems to happen mostly when I stop using the laptop for a while and go back to do something.
In order to connect to the printer I am finding that I have to reboot the XPS then it works for a while and again will then not print so assuming some sort of Wifi issue.