It isn't clear to me what you mean by "illusion".
I generally interpret "illusion" to mean that things appear to be contrary to how they are.
That is, an illusion is a way in which appearances are contrary to reality.
But to say that "reality is an illusion", would then be to say that "reality is a way in which appearances are contrary to reality." .
Which, appears to be nonsense.
I suppose if what you mean by "reality" is "perception", and if what you mean by "illusion" is also "perception", then what you mean by "reality" and "illusion" would be the same thing, namely, "perception", but, I don't think that's what you mean?