Different favicon on different pages

As of WordPress version 5.6, any posts or pages has options on the editor to include any custom scripts/styles and meta tags to the header of the page. So if you put your <link rel”icon” href=”favicon.png”/> it should work.

You upload your favicon into the media and after you uploaded the media. Refer the uploaded favicon png image reference directly to the link.

Example of favicon in header block

<link rel="icon" href="https://domainname.com/uploads/2020/10/10/favicon-32x32.png" />