Supermarkets and other retailers are preparing for a surge in demand and shoppers are stocking up on staple foods and cleaning supplies as more cases of the new coronavirus appear in the U.S.

For weeks, as the outbreak advanced mainly in China, retailers focused on maintaining supplies of products they procure from Asia such as tuna, mandarin oranges, garlic and face masks.

Their...