I have gone thorugh lot of blog for searching how to format and mask number for mobile phone.
$("#phone").intlTelInput({
autoHideDialCode: true,
autoPlaceholder: "ON",
dropdownContainer: document.body,
formatOnDisplay: true,
hiddenInput: "full_number",
initialCountry: "auto",
nationalMode: false,
placeholderNumberType: "MOBILE",
preferredCountries: ['US'],
separateDialCode: true,
utilsScript: "~/js/utils.js"
});