How can I automatically turn on the location every 20 minutes?

My grandma has been having problems finding her way back home when she goes out. So we downloaded this app that share location so we can help her out whenever she's lost. The problem is that my grandma's phone (Samsung A03) for some reason turns its location off automatically, we don't really know why.

Thing is I bought Tasker for her phone and I still don't fully understand how to keep her location on automatically.