Although I suppose the court could hold you in contempt if it found you had the means and said you didn't. But I've never seen or heard of anyone being means checked.
All the search results (Findlaw, Avvo lawyer answers, etc) seem to be saying that you have to qualify financially, you have to submit your income and assets of your household under penalty of perjury (signed statement, not oath) and you may also be asked to get quotes from lawyers to compare against your means. I think the most you could say is that courts are so overloaded you might get away with perjury.
A few sample links:
https://www.expertlaw.com/forums/showthread.php?t=61781
https://www.newsherald.com/news/20180304/in-court-majority-s...
https://www.avvo.com/legal-answers/can-i-be-denied-a-public-...
So I think you're right, it is perjury that doesn't really get anything done about it - I think based on the idea that if you had the money to get an attorney you would do it so anyone saying they can't get an attorney doesn't have the money.