You can't, but since it's usually the direct interaction that brings on the symptoms — it's not like a cat that wanders all over the house and leaves their dander around —, you can simply reduce contact or use gloves when handling the guinea pig.