At first there is a solution of HCl with phenolphthalein already in it. Then I titrate NaOH solution into it. When all HCl has reacted with NaOH the solution is colored pink thanks to phenolphthalein.
Something along the lines: www.researchgate.net/profile/Ariff_Adzhan/publication/325804308/figure/fig1/AS:638124782788608@1529152212607/Structural-rearrangement-of-phenolphthalein-under-pH-changes.png