Good day!
Faced such an interesting problem.
There is a form on the site that is visible immediately and a form that is in the pop-up window.
A mask is connected to both input using the inputmask plugin
$('input[type="tel"]').inputmask("+7(999)999-99-99"); Form in a popup window. input tel in normal condition. 
But the form that is visible immediately. Immediately highlighted in red. If filled, it will no longer be highlighted in red.
The code is the same. I use pug mixins so I know for sure that the structure is 1 to 1.
I made it so that the pop-up window was visible immediately, assumed that the test on forms that were NOT display: none somehow worked, but was not highlighted in the input tel pop-up window, everything was fine.
I added input tel to various parts of the document (wrapping it in a form and adding a button ) wherever such a test form is located, the input tel always highlighted in red.
Checked on explorer , edge , opera , google chrome , yandex browser - such a bug only on Mozilla.
How to fix it?