Retirement tax questions

I had an excess contribution to my Roth in 2019, had the contribution and earnings withdrawn in March 2020, and received the 1099-R for the withdrawal in February 2021. How do I amend my 2019 return to report the earnings on the contribution?