Some floor flanges are screwed into drain pipe and some are glued to drain pipe
Look down into drain pipe and see if there are any threads.
Options:
Home Depot Etc
Toilet floor flange repair adapter
Place it over existing floor flange aligning 'T' bolt with toilet base then uses screws to attach to floor flange