An otherwise good question ended with the questioner thanking the community in a religious way. It just feels inappropriate in my mind despite the op obvious good intentions. Can a moderator remove? I found this so the question is a duplicate I think. I would close but I don't know how to.
I am of the opinion that social throat-clearing, salutations, and other little niceties are mostly inappropriate on Math SE. Questions should be to the point, and avoid chit-chat. The goal here is to have a repository of knowledge. The original authorship and social lubrication is irrelevant to this goal, hence these kinds of comments don't belong. However, I do not think that it is entirely appropriate to edit a question just to remove such comments. From my own practice:
I do not edit questions just to remove greetings, closings, thanks, etc.
I will remove such if I am editing for other reasons. If I am already editing a post, I will remove comments like "Thank you in advance!", "Dear sirs", "Sincerely," etc while making other edits. I would include in these deletions religious salutations, but the fact that they are religious in nature is irrelevant.
In short, don't edit the question just to remove the salutations, but if there are other more substantial edits which need to be made, I don't think that you cause harm by also removing the salutations.
P.S. I hope you found this useful. Thank you for reading!
First, do no harm is a good place to start. If the OP believes in something and invokes that in their gratitude without harming anyone, leave it be. If your own beliefs are such that you are intolerant of others and/or their beliefs then there is potentially a problem for you personally to resolve.
If OPs beliefs are problematic and their gratitude amounts to hate speech for some group or minority then flag it for attention to a moderator and indicate the problem clearly. StackExchange has policies on all of these kinds of things, though they are sometimes controversial and caused much pain on many sides last year.
As said already in general, including material not related to the subject matter of the post is discouraged. Even though, historically, this site was actually more lenient than other SE sites regarding this.
In that sense, removing salutations, signatures, and alike is in principle always alright. For example there is a script in place that auto-deletes "Hello" and a few other things at the start of a post.
That said, in practice there is a trade-off. It's likely not worth it to edit a post only to deleted a simple "Thanks in advance" at the end of the post, but it can be worth it to snip it if one edits the post for more substantial reasons.
Now, if a post ends. "Most esteemed members of this august community of mathematicians, I humbly submit this request for your consideration. I will be grateful until the end of my days for any input you will provide. Wishing you a most wonderful day, I rest sincerely yours, Some User," I'd argue that one should do something about this.
The same applies more or less for religiously colored language. In principle, everything that is non-essential can be removed. In practice I would not track down everything that could be perceived as religious, also as certain constructs, while in principle of religious origin, are at least to some just part of their normal speech. So much so that some might not even realize it.
However, if it starts to be very visible I think it is alright to remove it, as a consequence of the general principle that non-necessary material can be removed.
For the specific case mentioned, I would say that it qualifies as very visible.
"I feel terrible mentioning it because I know you're only trying to be polite but could you remove the religious elements at the end? There are likely many faiths none should be given a platform" that is one of your comments in this site Mathematics Stack Exchange.
I don't understand the excerpt/part "There are likely many faiths none should be given a platform"
What do you mean exactly? For me it is difficult to discuss this post on Meta with you.