Hi,
okay, but how to detect such 'mini-tablet'?

There are no reliable ways to do that in Javascript!
E.g. an iPad mini is generally not detectable and the screensize and pixelratio on Android devices are also no reliable informations for the physical size...
Best regards,
Klaus