Competent opponent today will send a drone to where the counterbattery radar says the opposing artillery is. They no longer just fire at it. The drone will identify the target, and direct or adjust artillery to it. But that's only option one.
Option 2 is the drone is a loitering or barrage ammunition itself, and attacks the SPG directly.
Option 3. Drone is a recon unit and calls for a loitering drone.
Option 4. Drone tracks the SPG to it's hiding place and the opponent destroys both the SPG and the hanger it tried to hide into, using Option 3, 5, and 6. Or maybe a guided, winged bomb.
Option 5. Drone finds SPG, sends GPS coordinates, and a missile or a guided munition is headed to that location.
Option 6. Drone lights up the target with a laser, and a laser guided artillery shell will drop on it.
None of these are theoretical. They happen all the time in the Ukraine War. Every single day. Countless SPGs and mobile MLRS are already destroyed from this. On top of all other mobile units with tracks and wheels getting blown up.