Default [Q] App that cycles through wifi off / on every X amount of time?

Hello everyone. I'm having an issue. The router in my house sometimes loses connection with my device. I'd like to find an app that cycles through wifi every so often. Is there an app that auto turns off or auto turns on ever X amount of time?

Or as another solution, an app that sends out data packets or confirms connection or something like that every X amount of time?

Thanks in advance.

Kind regards