Obviously, this is only doable if you’re the owner of the router, or if you have access to the devices physically. The second thing that you can do is to restart the router and other networking equipment connected to it. If your S10 5G won’t have any wifi problem there, that means that you may only be having the issue on your own wifi, or to the one you previously connected. Visit your local library or a friend and use their wifi. First, you want to check how your device works when it’s connected to another wifi. There’s a number of stuff that you can do achieve that. If your Huawei P30 Pro seems to be having wifi issues, the first thing that you want to do is to find out if it’s due to a router or ISP-side problem.
Huawei P30 Pro wifi issues fix #1: Powercycle network equipment