Arrow pointing to a celestial body?

This might be a challenge to the coders out there. Can one have a dial or arrow pointing to a celestial body of your choice? Is it at all possible? Take the information on Jupiter as an example: https://theskylive.com/where-is-jupiter

The method would probably incorporate the compass data in some way? It has to take into account the time of day, your actual GPS location but perhaps rather a general point-of-view from earth would be more suitable? Just something interesting to think about.