So, formally, il faut ranger ta chambre can also be written as il te faut ranger la/ta chambre, right?
Yes, that's right. But it sounds very formal, and you wouldn't hear it very often in everyday spoken French.
You might like to have a look here to be confident about your proposal:-
Sign in to submit your answer
Don't have an account yet? Join today
Test your French to the CEFR standard