Q.Tomato Plant Problem
At just a few inches indoor tomatoes wilted came back and growing OK looked good 2 days ago and now again wilted looking
Certified GKH Gardening Expert
That soil looks off. It looks too thick for a container. Make sure that you are using quality potting soil for container. Here is an article that will help:
https://www.gardeningknowhow.com/garden-how-to/soil-fertilizers/using-topsoil-and-potting-soil.htm
This article will help you to grow tomatoes to their potential:
https://www.gardeningknowhow.com/edible/vegetables/tomato/growing-tomatoes-guide.htm
This link will take you to a free ebook that you can download on the subject of tomatoes:
https://blog.gardeningknowhow.com/ebooks/essential-guide-to-growing-tomatoes/