It’s best not to force the lid closed, as this could lead to more damage. Instead, try to gently adjust the lid while assessing the hinge to see if there’s any movement that allows it to close more naturally.
If the hinge is still partially connected, you might be able to stabilize the lid temporarily with a soft cloth or some tape to prevent it from moving too much while you prepare for repairs.
If that doesn't work, place it in a position where the lid is supported, and secure it gently with a soft cloth or padding to prevent it from moving. Reach out to a professional repair service or your laptop’s manufacturer as soon as possible.