How many hours since it hatched? They do a lot of weird things just after hatching as their bodies work out the kinks and learn how to work their muscles and tendons. It *should* be moving around normally after 6-8 hours or so.
If the chick can't stand up, falls over, and one or both legs are stuck out to the sides, it may be splayed leg (or spraddle leg). If it seems to want to look down between its legs or up and over its back, it may be wry neck. Both are caused by several issues - nutritional deficiency, injury, or improper incubation conditions, among others. Wry neck needs Vitamin E and selenium. Splayed leg needs the legs straightened and fixed, and perhaps a multivitamin containing the B's.
If it's been more than, say, 4 hours with no improvement, then it's maybe not too soon to start some treatment. You can give it some Nutri-Drench or Poly-Visol (without iron) for a vitamin cocktail with a punch. Give it undiluted on a q-tip to the side or tip of the beak; it will swallow. Do this 3-4 times a day for a day or two.
For spraddle leg, you can either use the cup method:
https://104homestead.com/fixing-spraddle-leg-drinking-glass/
Or wrap a bandaid or vet wrap around the legs:
https://blog.meyerhatchery.com/2019/09/spraddle-leg-causes-and-treatment/
Most people use the bandaid or vet wrap method with success.
I had a chick recently that couldn't stand up, just fell over, and seemed to not have good use of one leg. So instead of tying the legs with a bandaid or vet wrap, I used a tea cup with a piece of paper towel pressed into the bottom, and a piece of vet wrap stretched over the cup to make a hammock, or sling, with holes for the legs, for the chick to stand up in. Then I put another strip across the chick's back to hold it in the cup. It could stand with its feet on the paper towel, but couldn't get out. It tried, thereby strengthening its legs; and that was the point. I made little cups for food and water, and taped those to the rim of the cup over the handle, within easy reach, so it could eat (scrambled egg and chick starter) and drink (water with electrolytes). And I dosed with Poly-ViSol. By the next day, it had struggled enough to get itself out of the cup and that was that. Fixed!