how to give a condition in the .min() in Yup validation .?

I’m using a input field of type number..so I have to set the error msg when user enter only 2 numbers…so the condition is…if user didn’t enter any number then error will show “Mobile number is required” , if user enter more than 2 but less than 15 numbers, then error will show “Mobile number is too short” and if the number length is more than 15 then error will show like “Mobile number is too large”.

I try a null number value in the input field ..but its not showing me error like “Mobile number is required” but instead of that error it’s showing me “Mobile number is too short” …is there any method to give condition in the .min() of Yup validation..?