What should I do if I cannot close the battery compartment door properly?

If the battery compartment does not close securely, discontinue use and keep away from children as this can be a safety hazard. Consult the manual for further instructions.

From the official Apple How TO Replace The Battery IN Apple Airtags manual, page 1

Have a follow-up question?

Answers from the official manual.

Common questions