In order to ensure that your favicon is compatible for all platforms you need to produce several different favicon file types. For example if you only produce a favicon.png it will display in Google Chrome Desktop for Windows but it will not display in Google Chrome Mobile for Android.
So what you end up having to do is create multiple favicons of various file type and resolution in order to ensure cross platform favicon compatibility.
There is a link below that will generate the required favicons to ensure cross platform favicon compatibility. It accepts an input of PNG, JPG, SVG.
You require:
Favicon PNG image for modern desktop browsers.
Favicon Apple Touch icon for mobile browsers.
Favicon icon (.ico) old browsers.
Favicon tile icon for internet explorer on Windows 8 and 10.
I know this is not quite what you are looking for but it should further elaborate on the complexity of favicons.
https://realfavicongenerator.net/
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…