For Garmin historical data, you can request your entire history. This topic covers how to do it. No need to download the data, just copy the link from the mail.
For Polar, I’m not sure about historical data; I only use their HRM paired to Garmin devices and Zwift/IndieVelo.