To prevent PLA from warping on a glass bed, ensure the print surface is clean, and you're using a heated bed. You can further improve first-layer adhesion by using bed adhesives like hairspray, glue sticks, or painter's tape.