Consider Using Localized Input Masks for 'Phone' and Other Restricted Inputs (64% Aren't Taking Advantage of Input Masking) – Articles – Baymard Institute
Lightweight Pure JavaScript Input Mask | CSS Script
Bootstrap 4 Form input mask | Form input, Form, Mask