To evolve a Gligar into Gliscor you need to level it up at night while it holds a Razor Fang. If it's currently daytime in Pokémon Scarlet and Violet or Gligar isn't holding a Razor Fang, then this Pokémon will simply level up without evolving.