It is unlikely that a guinea pig will pass mites directly to a dog. The mites affecting guinea pigs (such as Cheyletiella parasitivorax) differ from those typically found on dogs (like Demodex and Sarcoptes). Most mites are species-specific.
Indirect transmission through shared bedding or grooming tools is theoretically possible but uncommon.
If your dog develops skin irritation, hair loss, or excessive scratching, consult a veterinarian. Good hygiene for both pets helps prevent cross-contamination.