It is not one thing
Some dogs are frustrated by a closed door, some are worried about being alone, and some are simply bored. They can look alike, but they need different help. Watching is the best way to find out.
Watch how they cope when you leave
If you already have footage from an ordinary absence, save a short clip for your vet. If your dog is usually comfortable during a brief separation, watch live from nearby. Return calmly at the first sign of worry. A few seconds of pacing, trembling or scratching is useful information. If your dog already panics when you leave, ask your vet for help before trying another separation.
University of Bristol Behaviour Clinic · Separation-related behaviourQuiet signs count too
A dog who lies by the door and trembles, or who will not eat until you are home, may be struggling even though nothing is damaged. These dogs need help just as much as noisy ones.
Never punish what happens while you are out
Telling a dog off when you get home makes being left more stressful, so it often makes things worse. Calmly clean up, and use what you see on camera to plan.
What helps in the meantime
Try not to leave your dog for longer than they can cope with. A dog sitter, day care, a friend or taking them with you can fill the gaps while you train. Keep departures and returns low key, and build absences slowly with the Building time alone, gently lesson.
When to see your vet
If your dog cannot cope with even a few seconds alone, or the signs are getting worse, talk to your vet. They can check for pain or other health problems and refer you to a qualified behaviourist or veterinary behaviourist. Medication can be a real help alongside training for some dogs. This is a welfare issue, and getting help early makes a difference.