Go to your WordPress Dashboard > Appearance > Customize > General Settings > Site Identity > Site Icon.
Here, you can upload your icon file. Check the screenshot below for details:
Note: You can try using some third-party services to make a proper size icon file for your site, for example, this one: https://www.favicon-generator.org/