The whole theory of Maya does not mean that the world is an illusion.
The world is a reality, but the theory of Maya says the world is only relatively real and, therefore, not absolutely real. It is not what you think it to be and what it is actually, you don’t know that either.