Can you provide some details about your Internet plan/service? Which router do you have?
When you say "can't get a connection" are you saying your phone cannot get a WiFi connection or you have a WiFi connection but can't access the Internet?
If you want specific advice you need to provide specific details about the issue.
Useful info. Now I don't have to waste your time (and mine) getting you to diagnose WiFi issues.
I wonder if the outages are due to DNS issues. The next time it happens do a ping test to the DNS server.
On the router status page you will see an IP address for DNS1. The ping test link is on the right side of the status page. You will need to log in (credentials should be on the side of the router unless you already changed it. Copy/paste the IP address to the addess input box on the Ping test page. If the DNS server responds to the ping test do a ping test to telus.com and if that passes try microsoft.com or google.com