I'm not sure if this is the exact solution you're looking for, as you mention Google Photos on both the iPhone and the PC (or Mac), but it looks like in 2019 Google separated Google Photos from Google Drive. That broke the automatic syncing between the two services.
Here's a CNET article that has some options:
Google has disconnected Photos and Drive. Here's how to keep your photos synced - CNET