Here will my phone mask plugin. Здесь будет мой плагин маски для телефона
Всё что от вас требуется, это взять код и вставить себе, он сам сработает на все input[type=tel]
All you have to do is take the code and insert itself, he will work on all input[type=tel]
Пример/Example https://artywork.ru/archy_phone_mask/