What is the real purpose of voting down questions and answers?
To mark content that is of low quality. Specifically, to indicate that a question is unclear (which is also a reason to close questions), not useful (e.g.: asks a question that others would not ask; or falls afoul of other question-closing reasons) or demonstrates a lack of research. For answers, that they are not useful (in particular because they are not correct, or do not provide adequate explanation for someone who would have the question).
In other words, exactly what the pop-ups tell you.
I thought it was a way of saying that the question is not clear, doesn't include own work to try to fix the problem, etc.
Yes, you understand more or less correctly.
Recently a few of my questions have been voted down, with no explanation
No explanation is owed, and no explanation will be expected in the future. This is extremely well-tread ground on Meta; the canonical explanation is Why isn't it required to provide comments/feedback for downvotes, and why are proposals suggesting this so negatively received?.
even though my questions follow the rules, provide details, and are on topic.
These are nowhere near sufficient to meet the requirements described above.
In particular, if you are trying to figure out a problem in your code - i.e., to do debugging - then do not simply post the code and a question on Stack Overflow. That is not the kind of "detail" we want. We want a Minimal, Reproducible Example - by the time you have created a proper MRE, you will not have a debugging question any more. Make sure to attempt your own debugging and understand the problem - make sure you know what you expect the program to do, at every step, and carefully check to see where that expectation is not met. Then create code that only, and directly demonstrates that problem.
And now I am being warned about being banned from posting questions, answers, or comments. What am I supposed to do about this?
Read the advice for those who were already banned, and be proactive. (In particular, beware that the score of deleted questions still counts against you for a ban, and deleting questions prevents them from getting upvoted.) Look at existing new questions that get upvoted, to understand what they have in common. Improve your own questions accordingly.
Considering your most recently asked question as a case study:
I have an Ionic app that I am working on. I have an Android device that I can test it on, but I do not have a way to test my app on iOS. Is it possible to test my app (visually only, not native functionality) for iOS without having a physical iOS device?
This primarily suggests a lack of research. I have absolutely no idea what Ionic even is; but when I saw this question, my gut instinct was to try typing test ionic app without device
into a search engine. When I try this, I immediately see not just useful links, but even full Youtube tutorials with promising titles like "Ionic 5 Tutorial #33 - Test Ionic App On Android Emulator". I assume this doesn't meet your exact requirements, but it suggests that not a lot of refinement would be required to get you on your way.
Another issue here is that Stack Overflow does not provide tech support. Did you consider first looking for an Ionic-specific support forum, for example?
And above all else, keep in mind that Stack Overflow is not a discussion forum. In particular, this entails that questions that you post here are not there specifically so that we can help you get your code working, but so that you can contribute to a knowledge base. It also means writing questions that look like they belong in a FAQ, not on a discussion forum.
Telling us that you "ran into many problems", or that you "Tried for days to fix it, but nothing worked" is actively counterproductive. First off, we can't see what you tried, or what the problems were. Second, it implies multiple separate questions about separate problems.