0
Solution:
Since Magento is a platform that uses controllers, blocks and helpers, it "makes the interaction of its modules much easier", what I was trying to do was to pull an action out of that module, where it was set in XML, so I put the code that is in the image inside the module, setting only another layout/css for mobile, but achieving the same functionality. My mistake was trying to use Action outside the module.