Just like humans, dogs yawn when they're tired.
Dogs may also yawn when they're feeling stressed or anxious.
Dogs may also yawn when they're feeling excited or aroused. This can happen before playtime, going for a walk, or seeing their favorite person.
Pay attention to your dog's body language when they yawn. If they are also licking their lips, tucking their tail between their legs,
If they are yawning because they are stressed, try to remove them from the stressful situation or calm them down with some gentle petting and reassurance.
If your dog is yawning excessively or if their yawns are accompanied by other signs of stress, such as panting, lip licking, or tail tucking