Using the Javascript SDK and this sample firebase database, with an index on "mobile" :
test A mobile : "+1234567" B mobile : "+234