This happened to my son there is no way to return to original. What I did was to place as close together were the pieces should be and used alot of black electrical tape to hold them together but it doesn't feel right anymore
There is a little board by the lcd cables make sure that board is oriented correctly it can be placed incorrectly follow the pin 1 on the little board with the pin 1 on the connector on the 3ds xl