The search result does not show when an anonymous user searches in SP 2019 on-premises modern site. Site is fully anonymous access enabled. I have done this literally 100s of times for classic. And it works for anonymous user if he searches from classic search page but the only problem comes when he searches from modern page.
UPDATE
Console errors before clicking in search text box on home page
Console errors after clicking in search text box on home page