What can be done to be mahram to an adopted daughter that is 9 years old?

Then adopt your niece (daughter of your brother or sister). They are mahram to you. Other than them are na mahram.