A privately owned company can do as it (that is: its owner(s) without state oversight) wishes.
--
If you want me to comment on the philosophy or morals of it though, I suppose I think 'meh, whatever' - a private company is free to spring up and compete, free of public shareholders and free to maximise customer satisfaction instead. Of course it's easy to say 'free to spring up', and really there are all sorts of barriers to entry in many almost monopolistic markets, but that's rather a separate issue I think - it's just as much an issue for any less customer-oriented, perhaps public or wannabe public, company trying to compete.
They only have to do what the shareholders demand if the shareholders actually vote to make them.
The meme of the "fiduciary duty" meaning that profit must be maximized at all costs has been debunked so many times by now it's really not funny.
The "fiduciary duty" rule that actually exists simply means (as I understand it) that execs can't legally enrich themselves at the company's expense beyond their agreed-upon compensation, without the approval of shareholders/the board.
So no; "every for-profit company" should not and does not have to take steps to maximize profit at the expense of their employees, their customers, and the public at large. Frankly, many of the ways they currently do this either are already or should be illegal, and are definitely immoral and detrimental to a healthy and functioning society and economy.
Companies changed up the way they did things starting in 2008 in order to survive, but sticking to that short term panic survival tactic is coming to a head. They've done almost everything possible in order to ensure growth, but the public just can't handle it and things are starting to collapse under the weight of near maximum monetization.
In that context, "profit" is the idea that earnings above cost are distributed to shareholders. The stock market mechanism then guarantees that companies unconcerned with that sort of profit will see someone gobble up the shares once they dip low enough (and they will), install a new board of directors, and dismantle the company for parts or some other endeavor-ending inevitability.
From a stock price perspective, it will just be too tempting.
Nonprofits are disallowed from distributing earnings above cost or any other profit mechanism. While they might have their own set of pathologies, they're immune to the one I've described, to the best of my understanding.
There are all sorts of ways to defend against a hostile takeover like this. I already mentioned Zuckerberg having majority control of the voting shares despite the company being public. There was also the attempted takeover of Netflix a decade ago that was prevented with a poison pill to issue more shares.
It seems almost impossible to run a public company without having the place be taken over by bean counters these days.
There are probably quite a few ways such a company would be vulnerable to takeover.
Companies are not mindless money machines, they're run by people who make decisions. I feel like post-80s Americans totally lost the concept that a company can exist for more than five years and without constantly chasing a buyout or merger for an easy exit.
We need more founders to start companies with the intention of keeping them going 10, 20, 30+ years. Just my two cents.
Instagram being a startup, their user's goals were aligned with their own while they were growing. The happier the user the better the growth metrics, the better they are playing the VC game. Now that they need to be solvent, they need to balance two goals, user happiness and profit per user. If you aren't contributing to ad rev or data acquisition you're no longer aligned with their goals, so log in or bugger off is the message we get.
I think there is something to be said about how a business will form as well, it's unlikely a business that formed all it's goals and policies in a glut of money and a growth mindset, never having to make the dollars make sense, will suddenly pivot to profitability without turbulence once the bills come due.
At a certain point, who cares? A company can exist indefinitely with any level of long term profit. They don't need to constantly be maximizing profit in the short term which is where these "fuck you" patterns generally arise. We have designed a system that has convinced everyone to never be satisfied or say they have enough. But there is no reason why that needs to be the case. Companies don't need to grow every quarter forever. It is both impossible and ends up degrading the lives of both employees and customers.