The IRS maintains the past 4 years of tax return transcripts. That means the years available change annually on Jan 1. This impacts Record of Account and Tax Return transcripts.
Account transcripts and Wage & Income transcripts (individuals only) are maintained for 25 years. You will have visibility for as many years back as you have consent.