After DNA replicates and the cell is about to divide, the DNA condenses and coils into the X-shaped form of a chromosome. ... During this process, sister chromatids separate from each other and move to opposite poles of the cell. This happens in four phases, called prophase, metaphase, anaphase, and telophase
The site
https://bio.libretexts.org/Bookshelves/Human_Biology/Book%3A_Human_Biology_(Wakim_and_Grewal)/07%3A_Cell_Reproduction/7.3%3A_Mitotic_Phase_-_Mitosis_and_Cytokinesis#Summary