The first thing here would be to determine the issue causing a poor WiFi. The possible fixes usually include:
Select an optimal placement for your router;
Update your router firmware;
Get a stronger antenna;
Reduce interference;
Consider installing a WiFi extender