McDonald’s Corp. is going back to basics.

After losing about 500 million U.S. orders over the past five years over failed attempts to widen its customer base, the fast-food chain said it is going to embrace its identity as an affordable fast-food chain and stop chasing after people who will rarely eat there.

The decision comes after the company...