At least in my case, the quality of my work as a consultant is no worse than any work I've done in industry (and almost certainly better, as I got exposed to more modern practices and worked with a wider variety of people), and I had industry jobs for like 16 years before this job.
My client also requires code reviews with engineers that work for the company internally (technically just other people on the team, but there's a couple internal people on the team that usually do the reviewing), so pretty much everything I write gets internal approval before it gets merged into the codebase.
If I got questioned about that in the interview, I could just tell them that.
Also because my firm is smaller they might not realize it's a consulting firm to begin with just from the name on the resume. It isn't something easily recognizable like Deloitte or Accenture.
It's definitely true for some people I've met, but it's definitely *not* true for others I've met. But if you're interviewing, how does the potential employer know which you are?
I really appreciate my consulting experience just from the sheer diversity of cloud environments and languages I've had to deal with but who knows!