Is it possible to automatically reestablish VPN connection when it is interrupted?

I have teamviewer on a W10 tablet that I use at jobs, it has a 4G connection to the internet. I use its VPN driver to establish a VPN connection to my office computer, where I have software running that serves job data from a database.

I also have the client software running on the tablet. On a local network, the tablet works fine to fetch and post job data to the server instance on my office PC.

In order to avoid exposing a port to the internet for the DB server, I just connect with the Teamviewer VPN to the office PC, and the job software runs fine, it behaves exactly as if it were on the local network.

However, where I drive, there are often spotty 4G connections, and so my internet connection to the tablet frequently drops out. When that happens, the teamviewer VPN also (understandably) fails.

Is there a way that I can coerce Teamviewer to retry a connection every, say, 15 seconds, if the VPN connection drops out?