Historically very few 26 inch bikes were built with narrow tires in mind, so most bikes with 26 inch wheels have rim inner widths that a 20mm wide tire could be a problem.
I usually rely on the chart at the bottom of this page to figure out what tire widths I should use for different rim inner widths.
https://www.sheldonbrown.com/tire-sizing.html