These require a cleated (spiked) backing to "grip" the carpet and prevent shifting.
Look for a smooth-backed mat. Spiked mats will scratch or mar hard surfaces. Regular cleaning under the mat is essential to prevent trapped grit from acting like sandpaper. CHAIR MATS
Thinner mats (economy or regular) are usually sufficient. These require a cleated (spiked) backing to "grip"