You put dirty dishes in the dishwasher, turn it on, and an hour or so later you have clean dishes. What a great appliance. Occasionally run your dishwasher with no dishes and use an appropriate solution or cleaner to clean the inside of the dishwasher. This also helps in being a clean environment for your dishes.
Check the bottom of your dishwasher to see if your model has removable filter. You can also check your owner’s manual to see how to remove it. Once you remove, just let it soak in some soapy water and rinse with warm water.
But you should also run the dishwasher empty with a cleaning mixture. In the door where you normally put the dishwashing soap, fill it with white vinegar. Then put some baking soda in the container that does not close. Close the door and run the dishwasher.
This solution disinfects and cleans out your dishwasher. Here is a video to watch from Front Porch Living Day.