A USB Wi-Fi adapter with drivers for Mac is difficult to find for anything earlier than Mac OS X 10.4 Tiger (which would be the last compatible system version for a first generation iMac G4 flat panel).
A Wi-Fi range extender with wireless Ethernet bridge capabilities (similar to the one mentioned in my previous message), or a dedicated wireless Ethernet bridge, does not normally require special software/drivers. Typically, a web-based setup is used (if necessary, on another computer). The device would work even under, for example, Mac OS 9.2.2. Modern wireless security would be possible.
Another matter, as dialabrain also indicated, is that the browsers compatible with operating systems before Mac OS X 10.4 cannot be used with today's (secure, https) web sites. A TenFourFox browser (now discontinued) for Mac OS X 10.4 has limited compatibility with secure sites. Otherwise, one would have to visit the few remaining plain http sites only.
An iMac G4 flat panel could of course be used for local file transfers et cetera via a wireless network, though.
https://everymac.com/systems/apple/imac/index-imac.html