PHYSICS!
saids no to this one sadly...
Anything we know as a mecha from movies, video games, anime, etc, are not a viable. While a small human sized exoskeleton would be practical, anything larger would take more energy to power, be less durable, and otherwise not be economical as a war machine.
The reasons for this are fairly simple. First there is the size and weight distribution problem. If you increase the size of an averaged sized adult human to twice their normal size you would nearly increasing their weight by 4 times ( due to volume compared to surface area ). This trend continues and you can make an exponential graph which will quickly show that bigger you get the weight goes up far too much. So the type of mecha you see in anime would need to be so heavy in its internal structure just to keep it standing that it would be unable to move, even assuming we have some futuristic super metal.
On top of that a mecha is not durable. There is alot of serface area for weapons to be able to hit. To have any kind of armor to protect against that would make it even heavier. It would be impossible to protect the entire thing properly from weapon fire. Also, a humanoid frame has many weak points that other shapes do not have. If you shoot a leg of a mecca it is disabled. A tank shape can have its important functions internal and provide far more protection, making it far more difficult to damage. And even if you have some kind of future shields a mecha would have a larger profile and far more easy to hit, assuming that we don't need to worry about armor, weight, etc.
Another good reason is power. The human body spends alot of energy just to be able to make it stand upright. Why have a large humanoid robot that takes far more energy than say a tank that has the same capability's?
And perhaps lastly, it doesn't give any advantage. A humanoid shape is not magically more effective per ton than a plane or a tank just because it looks like a human. Rather the opposite, it would be far more difficult to build because of all of the complexities involved. It would cost so much more to make per unit for the same reasons. Per ton and per dollar it would be less effective than other shapes. If you want bang for your buck you want a sphere. Volume to surface area its the best. shape, so you can have less weight on armor and protection and use that cost to either make more, or just make it stronger. Either way the sphere wins over the mecha.
Now, dont get me wrong... I would love to see a fully functional mecha warmachine. That would be sick. However asside from novelty it offers no benefit, even if we consider si-fi technology.