Google map not show in Mojave

I need to show google maps in a HTML Viewer and I try a simple program with an HTML Viewer that at opening event load the page with the text in window constant htmlcode that I define and set with sample code from Goole.
I use Xojo version 2023 Release 4 and I run the same program in a MacBook Air M1 with macOS Sonoma 14.4.1 and in a MacBook Pro 15 touch ID intel i7 with macOS Mojave 10.14.6
In Sonoma the map is correctly show but in Mojave the HTTML Viewer remain blank.
Can anyone can help me to resolve this problem?

Here a link to download the sample program.

It might require a “UserAgent” property to be set to something “known” to work. It depends on how the server is deciding what content it should provide. On Sonoma 14.4.1 Safari uses

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15

you could try with that.

I try to set UserAgent but still not work.

ìIf I try to open the ordiginal code in Safari in Mojave and the map is correctly show remain blank in Xcode program