The idler pulley's location on a 1997 Chevy Cavalier depends slightly on the engine (2.2L or 2.4L) and whether it's an automatic or manual transmission, but generally speaking, it's located on the
passenger side (right side) of the engine, within the serpentine belt system. It's usually near the alternator and power steering pump. You'll see a small pulley wheel that doesn't directly drive anything else other than the belt.
To be sure, it's best to consult a repair manual specific to your 1997 Chevy Cavalier's engine and transmission. A diagram of the serpentine belt routing will clearly show the idler pulley's location. You can find these manuals online or at auto parts stores.