What has happened to the Gmail app for Mac OS X?
Solution 1:
Google has never made a Gmail app for macOS.
You can use local folders in Mail.app: https://support.apple.com/guide/mail/mlhlp1021/mac.
On My Mac: Mailboxes you create in On My Mac are local, meaning you can access them only on the Mac where you created them.