My experience is; view-source gives the downloaded html (&css &js). It will show a js function which adds some html elements to dom. So for example view-source migjt never show a specific div with text. I usually go by inspect element, because that shows that shows whats rendered, what we actually see on dom.
Many websites’ code now are minified so I have to copy and paste it around then manually clean it up before I can start reading it.