https://messages.google.com/web/ is one way I'm aware of, I'm sure there's others depending on the messages app used.
But I guess you can install a custom messaging app that would sync the messages? (If there’s one that still supports such an old version of Android)