Look for companies and industries that can pass rising costs onto customers more easily. So typically staples over discretionary. Fuel, food, medicine.
Just have a look which companies did good during corona, or which businesses were not affected by the lock down. Those are the real essential ones, which will be safe in a recession.