OK a couple of suggestions.
First if you are going to build cabinets like this one get some of these clamps.
Cheap and dirty https://www.amazon.com/SEDY-Clamp-Woodworking-Holder-Picture/dp/B07PLV5LX8
or these real good but more $$ Amazon.com
They will assist you a bunch in keeping things like your cabinet square.
Another option is to only glue the shelfs one side of the cabinet so you can lay the side flat on the side and install / glue the shelves at 90 degrees to that first side . You will have complete access to shim , block, prop up sach shelf to get a perfect 90 . From there you can add the other side after all is glued and dried..
As far as your current issue. If you cant rack back the assembly to square and hold it there with tha cabinet back then you can cut out the shelves close to the cabinet sides as possible. A good hand saw or pull saw can be your best friend here.
To save the shelf material square them up and bread board the ends to make up the material lost. You most likely will wrap the exposed ply wood edges anyway.
Lastly if you can next cabinet / shelf project start with the material for the sides in one piece twice as wide as finished dimension and some extra. Cut your routed dados across after carefully squaring a fence for your router. Then seperate the two sides. This should leave you with two great matching sides to receive the shelves.
Don't give up... I have been making mistakes far greater than yours for nearky 50 years it happens.
calabrese55
First if you are going to build cabinets like this one get some of these clamps.
Cheap and dirty https://www.amazon.com/SEDY-Clamp-Woodworking-Holder-Picture/dp/B07PLV5LX8
or these real good but more $$ Amazon.com
They will assist you a bunch in keeping things like your cabinet square.
Another option is to only glue the shelfs one side of the cabinet so you can lay the side flat on the side and install / glue the shelves at 90 degrees to that first side . You will have complete access to shim , block, prop up sach shelf to get a perfect 90 . From there you can add the other side after all is glued and dried..
As far as your current issue. If you cant rack back the assembly to square and hold it there with tha cabinet back then you can cut out the shelves close to the cabinet sides as possible. A good hand saw or pull saw can be your best friend here.
To save the shelf material square them up and bread board the ends to make up the material lost. You most likely will wrap the exposed ply wood edges anyway.
Lastly if you can next cabinet / shelf project start with the material for the sides in one piece twice as wide as finished dimension and some extra. Cut your routed dados across after carefully squaring a fence for your router. Then seperate the two sides. This should leave you with two great matching sides to receive the shelves.
Don't give up... I have been making mistakes far greater than yours for nearky 50 years it happens.
calabrese55