I think the headphones output socket is of a type that does not isolate the audio from the speaker sound channel when you have headphones plugged in.
I can't think of a way around it other than to switch off the speakers.
Xiaomi Mi Mix 2 review
What went wrong at the Designs of the Year 2017
iPhone X news: Release date, price, new features & specs
Comment utiliser Live Photos ?